﻿<Window x:Class="MarkdownExplorer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:self="clr-namespace:MarkdownExplorer"
        Title="Markdown Explorer"
        Height="{Binding Source={x:Static self:Properties.Settings.Default}, Path=WindowHeight, Mode=TwoWay}"
        Width="{Binding Source={x:Static self:Properties.Settings.Default}, Path=WindowWidth, Mode=TwoWay}"
        WindowStartupLocation="CenterScreen"
        Loaded="MainWindow_Loaded">
    <Window.CommandBindings>
        <CommandBinding Command="Open" Executed="OpenMenuItem_Click" />
    </Window.CommandBindings>
    <DockPanel LastChildFill="True">
        <Menu DockPanel.Dock="Top">
            <MenuItem Header="_File">
                <MenuItem Command="Open" Header="_Open...">
                    <MenuItem.Icon>
                        <Image Source="Images/openHS.png" Width="16" Height="16" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
                <MenuItem Click="ExitMenuItem_Click" Header="E_xit" />
            </MenuItem>
        </Menu>
        <FlowDocumentReader Name="flowDocumentReader" ViewingMode="Scroll" />
    </DockPanel>
</Window>
